package com.yan.demo;

import java.util.Deque;
import java.util.LinkedList;

/**
 * @author taoge
 * @Date 2024/7/31 20:07
 * @Description
 */
public class Demo6 {
    public static void main(String[] args) {
        Deque<Integer> list = new LinkedList<>();
        list.push(1);
        list.push(2);
        list.push(3);
        list.push(4);
        Integer poll = list.poll();
        System.out.println("poll = " + poll);
        System.out.println(list);

    }


}
